package com.shop.product.service.impl;


import com.shop.product.domain.MallProductRuleAttrInfo;
import com.shop.product.domain.MallProductRuleInfo;
import com.shop.product.mapper.MallProductRuleAttrInfoMapper;
import com.shop.product.service.MallProductRuleAttrInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class MallProductRuleAttrInfoServiceImpl implements MallProductRuleAttrInfoService {
    @Autowired
    private MallProductRuleAttrInfoMapper mallProductRuleAttrInfoMapper;

    @Override
    public void deleteMallproductRuleAttrInfoByRuleId(Long ruleId) {
        mallProductRuleAttrInfoMapper.deleteMallProductRuleAttrInfoByRuleId(ruleId);
    }

    @Override
    public void insertMallProductRuleAttrInfoList(ArrayList<MallProductRuleAttrInfo> ruleAttrInfoList) {
        mallProductRuleAttrInfoMapper.insertMallProductRuleAttrInfoList(ruleAttrInfoList);
    }

    @Override
    public List<MallProductRuleInfo> selectMallProductRuleAttrInfoList(MallProductRuleAttrInfo mallProductRuleAttrInfo) {

        return mallProductRuleAttrInfoMapper.selectMallProductRuleAttrInfoList(mallProductRuleAttrInfo);
    }
}
